<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

    <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../js/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../js/themes/icon.css">
<script type="text/javascript" src="../js/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="../js/jquery.easyui.min.js"charset="utf-8"></script>
<script type="text/javascript" src="../js/locale/easyui-lang-zh_CN.js"charset="utf-8"></script>
	<script type="text/javascript">
	$(function(){
		$('#tt').datagrid({
			width:2000,
			height:600,
			url:'<%=path%>/main/get/pros4',
			queryParams : {
				 "cropid":<%=session.getAttribute("cropid")%>,
			    },
		    pagination : true,

		    loadMsg: '数据加载中...',
			mode : 'remote',
			delay : 500,
		    fit:false,
		    rownumbers:true,
	    	columns:[[
				{field:'date',title:'日期',width:100},
				{field:'shoushudoc',title:'手术医师',width:100},
				{field:'cusname',title:'顾客姓名',width:100},
				{field:'xczx',title:'现场咨询',width:100},
				{field:'webzx',title:'网络咨询',width:100},
				{field:'phonezx',title:'电话咨询',width:100},
				{field:'scb',title:'市场部',width:100},
				{field:'menzhen',title:'门诊',width:100},
				{field:'qita',title:'其他',width:100},
				{field:'membername',title:'会员名称',width:100},
				{field:'xfdl',title:'消费大类',width:100},
				{field:'xmfl',title:'项目分类',width:100},
				{field:'subjectname',title:'科目名称',width:100},
				{field:'xfmx',title:'消费明细',width:100},
				{field:'jfje',title:'缴费金额',width:100},
				{field:'iddazhe',title:'是否打折',width:100},
				{field:'cash',title:'现金',width:100},
				{field:'shuaka',title:'刷卡pos',width:100},
				{field:'zhipiao',title:'支票',width:100},			
				{field:'shuakabank',title:'刷卡银行',width:100},
				{field:'dianhui',title:'电汇',width:100},				
				{field:'qiankuan',title:'欠款',width:100},
				{field:'huaka',title:'划卡',width:100},
				{field:'yajintrans',title:'押金转入',width:100},
				{field:'otherpay',title:'其他付款',width:100},
				{field:'otherrecive',title:'其他应收',width:100},
				{field:'yuyuedate',title:'预约金及办卡时间',width:100},
				{field:'fapiaohao',title:'发票号',width:100},
				{field:'beizhu',title:'备注',width:100},
				{field:'chukudan',title:'出库单',width:100},
				{field:'shoukuanren',title:'收款人',width:100},
				
				
			          ]],
		});	
		 //设置分页控件  
	    var p = $('#tt').datagrid('getPager');  
	    $(p).pagination({  
	        pageSize: 10,//每页显示的记录条数，默认为10  
	        pageList: [10,15,20,25],//可以设置每页记录条数的列表  
	        beforePageText: '第',//页数文本框前显示的汉字  
	        afterPageText: '页    共 {pages} 页',  
	        displayMsg: '当前显示 {from} - {to} 条记录   共 {total} 条记录',  
	    });
	});
	</script>
	
<style>
	#d1{
		text-align:center;
	}
#d3{
	width: 2000px;
	margin: 45px auto;
}
</style>
<title>Insert title here</title>
</head>
<body>
		<div id="d1"><h2>公司台账</h2></div>
		
		<div id="d3">
			<table id="tt">
						
			</table>
		</div>
</body>
</html>